{% spaceless %}


{% if is_paginated %}
<div class="paginator">
{% if page_obj.has_previous %}<span class="prev"><a href="?page={{page_obj.previous_page_number}}" title="Previous Page">&laquo; Previous</a></span>{% else %}<span class="prev-na">&laquo; Previous</span>{% endif %}

{% for num in paginator.page_range %}
  {% ifequal num page_obj.number %}
    <span class="curr" title="Current Page">{{ num }}</span>
  {% else %}
  	<span class="page"><a href="?page={{ num }}" title="Page {{ num }}">{{ num }}</a></span>
  {% endifequal %}
{% endfor %}

{% if page_obj.has_next %}<span class="next"><a href="?page={{page_obj.next_page_number}}" title="Next Page">Next &raquo;</a></span>{% else %}<span class="next-na">Next &raquo;</span>{% endif %}
</div>
{% endif %}

{% endspaceless %}